package com.myproject.myblogserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 博客-标签关联表
 * </p>
 *
 * @author jiangweike
 * @since 2025-02-25
 */
@Getter
@Setter
@TableName("blog_tag")
@ApiModel(value = "BlogTag对象", description = "博客-标签关联表")
public class BlogTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("博客ID（关联blog.id）")
    private Long blogId;

    @ApiModelProperty("标签名称")
    private String tagName;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty("逻辑删除标志 (0:未删除, 1:已删除)")
    private Boolean isDeleted;
}
